# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=python2-dnslib
pkgver=0.9.10
pkgrel=1
pkgdesc='Simple library to encode/decode DNS wire-format packets.'
arch=('any')
url='https://pypi.org/project/dnslib/#files'
license=('custom:BSD')
depends=('python')
makedepends=('python2-setuptools')
source=("https://files.pythonhosted.org/packages/source/${_pkgname::1}/$_pkgname/dnslib-0.9.10.tar.gz")
sha512sums=('6d57dde440baffcc279e159554654b41adedd0471e56fb91a665596e2b7c2d3d909a9d72bd4a465638b177f5d81ceffc0737335964508bf5046ee38f5046bba5')

build() {
  cd "dnslib-$pkgver"

  python2 setup.py build
}

package() {
  cd "dnslib-$pkgver"

  python2 setup.py install --root="$pkgdir" -O1 --skip-build
}

